
package com.ebuy.mall.dao;

import com.ebuy.mall.entity.EBuyMallShoppingCartItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EBuyMallShoppingCartItemMapper {
    int deleteByPrimaryKey(Long cartItemId);

    int insert(EBuyMallShoppingCartItem record);

    int insertSelective(EBuyMallShoppingCartItem record);

    EBuyMallShoppingCartItem selectByPrimaryKey(Long cartItemId);

    EBuyMallShoppingCartItem selectByUserIdAndGoodsId(@Param("newBeeMallUserId") Long newBeeMallUserId, @Param("goodsId") Long goodsId);

    List<EBuyMallShoppingCartItem> selectByUserId(@Param("newBeeMallUserId") Long newBeeMallUserId, @Param("number") int number);

    int selectCountByUserId(Long newBeeMallUserId);

    int updateByPrimaryKeySelective(EBuyMallShoppingCartItem record);

    int updateByPrimaryKey(EBuyMallShoppingCartItem record);

    int deleteBatch(List<Long> ids);
}